Now let s take a look at the push down method for the 現(xiàn)在讓我們看一看operatingsystemresource bean的
Only once i ve finalized the organization of packages and finished refactoring methods - whether that be by extracting new methods from existing code , pulling up or pushing down methods in the hierarchy , or moving them to another class entirely - do i then review method visibility 只有當我最后定下了包的組織結(jié)構(gòu)并完成了對方法的重構(gòu)不管是通過從現(xiàn)有代碼抽取出新方法、在層次結(jié)構(gòu)中上移或下移方法還是將方法整個地移至其它類中我才會重新檢查方法的可視性。